﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "OaRiskReporting";
	string DBTablePK = "ID";
	string DBTableTitle = "";
	if(InstanceID.IsNullOrEmpty()){InstanceID = Request.QueryString["instanceid1"];}
	YJ.Platform.Dictionary BDictionary = new YJ.Platform.Dictionary();
	YJ.Platform.WorkFlow BWorkFlow = new YJ.Platform.WorkFlow();
	YJ.Platform.WorkFlowTask BWorkFlowTask = new YJ.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus, "{\"oariskreporting.reporttime\":\"yyyy年MM月dd日\"}");
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="OaRiskReporting." name="OaRiskReporting." value="@(TaskTitle.IsNullOrEmpty() ? BWorkFlow.GetAutoTaskTitle(FlowID, StepID, Request.QueryString["groupid"]) : TaskTitle)" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="OaRiskReporting." />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="OaRiskReporting" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<textarea id="Form_DBTableTitleExpression" name="Form_DBTableTitleExpression" style="display:none;width:0;height:0;"></textarea>
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = "1"=="@Request.QueryString["isreadonly"]" ? {} : @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(window).load(function (){
		formrun.initData(initData, "OaRiskReporting", fieldStatus, displayModel);
	});
</script>
<p><br/></p><p><br/></p><table class="flowformtable tableF table table-bordered" data-sort="sortDisabled" cellspacing="0" cellpadding="0" align="center"><tbody><tr class="firstRow"><th rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="center"><span class="title">风 险 上 报</span></th></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="left"><p class="titleO">基本信息</p></th></tr><tr class="topTr"><td class="top" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">姓名</p><input type="text" type1="flow_org" id="OaRiskReporting.ReportName" name="OaRiskReporting.ReportName" value="u_@YJ.Platform.Users.CurrentUserID.ToString()" style="width:55%" more="0" isflow="1" class="mymember" title="" dept="0" station="0" user="1" workgroup="0" unit="0" rootid="04f12beb-d99d-43df-ac9a-3042957d6bda"/></td><td class="top" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">部门</p><input type="text" type1="flow_org" id="OaRiskReporting.ReportSector" name="OaRiskReporting.ReportSector" value="@(YJ.Platform.Users.CurrentDeptID)" style="width:55%" more="0" isflow="1" class="mymember" title="" dept="1" station="0" user="0" workgroup="0" unit="0" rootid="04f12beb-d99d-43df-ac9a-3042957d6bda"/></td></tr><tr class="bottomTr"><td class="bottom" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">申请人职务</p><input type="text" id="OaRiskReporting.ReportPost" type1="flow_text" name="OaRiskReporting.ReportPost" value="" valuetype="0" align="left" isflow="1" class="mytext" title=""/></td><td class="bottom" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">申请日期</p><input type="text" type1="flow_datetime" id="OaRiskReporting.ReportTime" name="OaRiskReporting.ReportTime" value="@(YJ.Utility.DateTimeNew.LongDate)" format="yyyy年MM月dd日" defaultvalue="%40(YJ.Utility.DateTimeNew.LongDate)" istime="0" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title=""/></td></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="left"><p class="titleO">风险信息</p></th></tr><tr class="topTr"><td class="top" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">风险范围</p><input type="text" id="OaRiskReporting.Range" type1="flow_text" name="OaRiskReporting.Range" value="" valuetype="0" align="left" isflow="1" class="mytext" title=""/></td><td class="top" rowspan="1" colspan="1" valign="middle" align="left"><p class="txt">风险项目</p><input type="text" id="OaRiskReporting.Project" type1="flow_text" name="OaRiskReporting.Project" value="" valuetype="0" align="left" isflow="1" class="mytext" title=""/></td></tr><tr class="bottomTr"><td class="bottom" style="word-break: break-all;" rowspan="1" colspan="2" valign="middle" align="left"><p class="txt">风险描述</p><textarea isflow="1" type1="flow_textarea" id="OaRiskReporting.Describe" name="OaRiskReporting.Describe" class="mytext" style=" height:40px;"></textarea></td></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="left"><p class="titleO">风险评估</p></th></tr><tr class="topTr"><td class="top Tradio" style="word-break: break-all;" rowspan="1" colspan="2" valign="middle" align="left"><p class="txt">可能性（频率）</p><input type="radio" name="OaRiskReporting.Probability" id="OaRiskReporting.Probability_0" value="0" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="OaRiskReporting.Probability_0" style="vertical-align:middle;margin-right:3px;">小</label><input type="radio" name="OaRiskReporting.Probability" id="OaRiskReporting.Probability_1" value="2" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="OaRiskReporting.Probability_1" style="vertical-align:middle;margin-right:3px;">中</label><input type="radio" name="OaRiskReporting.Probability" id="OaRiskReporting.Probability_2" value="1" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="OaRiskReporting.Probability_2" style="vertical-align:middle;margin-right:3px;">大</label></td></tr><tr><td class="Tradio" style="word-break: break-all;" rowspan="1" colspan="2" valign="middle" align="left"><p class="txt">可能性（频率）说明</p><textarea isflow="1" type1="flow_textarea" id="OaRiskReporting.Frequency" name="OaRiskReporting.Frequency" class="mytext" style=" height:40px;"></textarea></td></tr><tr><td class="Tradio" style="word-break: break-all;" rowspan="1" colspan="2" valign="middle" align="left"><p class="txt">损失（影响）程度</p><input type="radio" name="OaRiskReporting.degree" id="OaRiskReporting.degree_0" value="0" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="OaRiskReporting.degree_0" style="vertical-align:middle;margin-right:3px;">低</label><input type="radio" name="OaRiskReporting.degree" id="OaRiskReporting.degree_1" value="2" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="OaRiskReporting.degree_1" style="vertical-align:middle;margin-right:3px;">中</label><input type="radio" name="OaRiskReporting.degree" id="OaRiskReporting.degree_2" value="1" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="OaRiskReporting.degree_2" style="vertical-align:middle;margin-right:3px;">高</label></td></tr><tr class="bottomTr"><td class="bottom" style="word-break: break-all;" rowspan="1" colspan="2" valign="middle" align="left"><p class="txt">损失（影响）说明</p><textarea isflow="1" type1="flow_textarea" id="OaRiskReporting.Note" name="OaRiskReporting.Note" class="mytext" style="height:40px;"></textarea></td></tr></tbody></table>